package com.yzqp.sys.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

/**
 * Permission saveForm
 */
@Data
@ApiModel(value = "saveForm")
public class PermissionSaveForm {

    // id
    @ApiModelProperty("编号")
    private Long id;

    @NotBlank(message = "权限值不能为空")
    @ApiModelProperty("权限值")
    private String permissionValue;

    @NotBlank(message = "权限名称不能为空")
    @ApiModelProperty("权限名称")
    private String permissionName;

    @NotNull(message = "目录标志不能为空")
    @ApiModelProperty("目录标志")
    private Boolean catalogFlag;

    @NotNull(message = "父id不能为空")
    @ApiModelProperty("父id")
    private Integer parentId;

}
